<?php
    class ModCp_Form_ValidateNews
    {
        public function validNewsTitle($news_title)
        {
            $validation = new Zend_Validate_StringLength(1, 300);
            if($validation->isValid($news_title))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        
        public function validNewsImage($news_image)
        {
            $validation = new Zend_Validate_NotEmpty();
            if($validation->isValid($news_image))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        
        public function validNewsContent($news_content)
        {
            $validation = new Zend_Validate_NotEmpty();
            if($validation->isValid($news_content))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        
        public function validNewsSearch($keyword)
        {
            $validation = new Zend_Validate_NotEmpty();
            if($validation->isValid($keyword))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
